package com.baomidou.mybatisplus.samples.quickstart.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.samples.quickstart.pojo.Dep;
import com.baomidou.mybatisplus.samples.quickstart.pojo.Emp;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-03-02 11:43:18
 */
@Mapper
public interface EmpMapper extends BaseMapper<Emp> {

//    @Results(id = "empMapper", value = {
//            @Result(property = "dep", column = "dep_id",
//                    one = @One(select = "com.baomidou.mybatisplus.samples.quickstart.mapper.DepMapper.selectById"))
//    })
//    @Select("SELECT * FROM mp_emp WHERE id=#{id}")
//    Emp selectById(String id);
//
//    @ResultMap(value = "empMapper")
//    @Select("select * from mp_emp where 1=1 and " + "${ew.sqlSegment}")
//    List<Emp> selectList(@Param("ew") QueryWrapper<Emp> wrapper);
}
